// write your code here
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNextLine()){
            String str=sc.nextLine();
            char[] arr = str.toCharArray();
            for(int i=0;i<arr.length;i++){
                if(arr[i]=='_'){
                    continue;
                }
                if(i > 0 && arr[i - 1] == '_')
                    System.out.print((char) (arr[i] - 32));
                else
                    System.out.print(arr[i]);
            }
            System.out.println();
        }
    }
}
